API Documentation
Public Member Functions | Public Attributes | List of all members
nkMaths::Point Class Reference

Represents a 2D Point. More...

Public Member Functions

 Point ()=default
 
 Point (float x, float y)
 

Public Attributes

union {
   float   _x
 
   float   x
 
}; 
 The x component of the point position, accessible through different names.
 
union {
   float   _y
 
   float   y
 
}; 
 The y component of the point position, accessible through different names.
 

Detailed Description

Represents a 2D Point.

Constructor & Destructor Documentation

◆ Point() [1/2]

nkMaths::Point::Point ( )
default

Default constructor. Defaults all members to 0.

◆ Point() [2/2]

nkMaths::Point::Point ( float  x,
float  y 
)

Constructor.

Parameters
xThe x component of the point's position.
yThe y component of the point's position.

The documentation for this class was generated from the following file: